package com.cn.front.feign.fallBack;

import com.cn.common.pojo.ResultModel;
import com.cn.front.feign.ProjectFeign;
import org.springframework.stereotype.Component;

@Component
public class ProjectFallBack implements ProjectFeign {
    @Override
    public ResultModel pForP() {
        return ResultModel.Data(pForP().getData());
    }

    @Override
    public ResultModel pByType(int type) {
        return ResultModel.Data(pByType(type).getData());
    }

    @Override
    public ResultModel pForId(int id) {
        return ResultModel.Data(pForId(id).getData());
    }

    @Override
    public ResultModel item() {
        return ResultModel.Data(item().getData());
    }
}
